{% extends "admin/base_site.html" %}
{% load admin_urls static admin_modify %}

{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="{% static 'js/i18n/en-US.js' %}"></script>
{{ media }}
{% endblock %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %}

{% block coltype %}colM{% endblock %}

{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">Home</a>
&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a>
&rsaquo; {% if has_view_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
&rsaquo; {% if add %}Add {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
</div>
{% endblock %}

{% block content %}<div id="content-main">
  <form action="{{ form_url }}" method="post" id="{{ opts.model_name }}_form" novalidate>
  {% csrf_token %}
  <input type="hidden" name="action" value="{% if add %}0{% else %}1{% endif %}">
  <div>
    <h2>Add-on GUIDs (one per line)</h2>
    {% if form.non_field_errors %}
      <p>
        {{ form.non_field_errors }}
      </p>
    {% endif %}
    <div class="form-row">
      {{ form.guids.errors }}
      {{ form.guids }}
    </div>
    {% block submit_buttons_bottom %}
    <div class="submit-row">
      <input type="submit" value="Submit" class="default" name="_save">
    </div>
    {% endblock %}
  </div>
  </form>
</div>
{% endblock %}
